package cn.fang2chen.istio.micro.spring.configuration.swagger;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import springfox.documentation.swagger2.configuration.Swagger2DocumentationConfiguration;

/**
 * 参考 <a href="https://github.com/SpringForAll/spring-boot-starter-swagger/blob/master/src/main/java/com/spring4all/swagger/SwaggerProperties.java">github开源项目</a>
 *
 * @author dcmini
 * @since 1.0.0
 */
@Configuration
@ConditionalOnProperty(name = "swagger.enabled", matchIfMissing = true)
@Import({
        Swagger2DocumentationConfiguration.class
})
public class SwaggerConfiguration {
}
